Background
This repository is designed to provide comprehensive documentation of
the R code used for the analysis of yield gap decomposition, integrating
both crop modeling and stochastic frontier analysis.
Libraries and extra R-files
The following libraries were used:
# libraries
library(nasapower)
library(meteor)
library(lubridate)
library(dplyr)
Additionally, extra R-files need to be loaded.
# extra R-files
load(url("https://github.com/jninanya/solanumR/raw/refs/heads/main/CropParamsList.Rdata"))
source("https://raw.githubusercontent.com/jninanya/solanumR/refs/heads/main/thermalTime.R")
source("https://raw.githubusercontent.com/jninanya/solanumR/refs/heads/main/SolanumModel.R")
Field experiment and data collection
A field experiment was performed to determine the potential yield of
the 5 most common used potato varieties in Chugay, La Libertad,
Peru.